package cn.touna.jss.modules.custom.carmodel.mapper;


import cn.touna.jss.modules.custom.carmodel.dto.JzgModelDto;
import cn.touna.jss.modules.custom.carmodel.entity.JzgModelEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JzgModelEntityMapper {
    int insert(JzgModelEntity record);

    JzgModelEntity selectByPrimaryKey(Integer id);

    int updateByModelId(JzgModelEntity record);

    List<JzgModelDto> selectByPageForMatch(
            @Param("brandId") int brandId,
            @Param("seriesId") int seriesId,
            @Param("modelName") String modelName,
            @Param("pageSize") int pageSize,
            @Param("offset") int offset
    );

    int selectCountForMatch(
            @Param("brandId") int brandId,
            @Param("seriesId") int seriesId,
            @Param("modelName") String modelName
    );

    JzgModelEntity selectByModelId(int modelId);
}